﻿using LoveEat.API.Read.DTOs;
using LoveEat.ErrorCode;
using MediatR;

namespace LoveEat.API.Read.Applications.Commands.Goods
{
    /// <summary>
    /// 商品查询信息
    /// </summary>
    public class GoodsQueryCommand:IRequest<APIResult<APIPaging<GoodsDTO>>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int Pagindex {  get; set; }
        /// <summary>
        /// 页容量
        /// </summary>
        public int Pagsize {  get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string? GoodsNameName { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Production { get; set; }
        /// <summary>
        /// 保质期（天）
        /// </summary>
        public int LifeDay { get; set; }
        /// <summary>
        ///  生产许可证号
        /// </summary>
        public string? Pronumber { get; set; }
        /// <summary>
        /// 上产企业
        /// </summary>
        public string? ProCommand { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string? CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
    }
}
